<template>
	<div id="app">
		<container></container>
		<!-- <fieldset>
			<legend>app组件</legend>
			<modal :visible="visible" @on-confirm="confirm(); fetch()" @on-cancel="cancel">
				<template v-slot:title>
					<h1>app的弹窗</h1>
				</template>
				<template v-slot:body>
					<h3>app的弹窗主体</h3>
				</template>
			</modal>
			<button @click='showModal'>app的按钮点击显示模态框</button>
		</fieldset> -->
	</div>
</template>
<script>
//编写文档 告诉别人你的组件怎么使用
import container from "./components/container"
import modalMix from "./mixins/modal"
export default {
	mixins: [modalMix],
	name: 'app',
	methods: {
		fetch() {
			alert('请求到数据了')
		}
	},
	components: {
		container
	}
}
</script>